<template>
  <view>
    chatbox
  </view>
</template>

<script>
  export default {
    data() {
      return {
        user: {}
      };
    },
    //获取聊天对象的id和name
    onLoad: function(option) {
      console.log(option)
      this.user = option
      uni.setNavigationBarTitle({
        title: this.user.name
      })
    }

  }
</script>

<style lang="scss">

</style>